package test;

import java.io.FileNotFoundException;

class MyCustomException extends Exception {
    public MyCustomException(String message) {
        super(message);
    }
}

public class E {

    public static void main(String[] args) {

    }

    public static void main1(String args[]) throws FileNotFoundException {
        int x = 8, y = 8;
        if (x++ == 9 && ++y == 9) {
            x = 10;
            y = 10;
            throw new FileNotFoundException("配置名字文件不对");
        }
        System.out.println("x=" + x + " , y=" + y);

    }

    public static void main2(String[] args) {
        System.out.println(func());
    }

    public static int func() {
        try {
            return 10;
        } finally {
            return 20;
        }
    }
}